<template>
  <aside class="btn-box">
    <el-row :gutter="15">
      <el-col :span="2">
        <el-button type="primary" size="mini" icon="el-icon-circle-plus-outline" @click="addNewLevel">新增</el-button>
        <level-dialog ref="addNew" @reloadFun="reloadFun" />
      </el-col>
    </el-row>
  </aside>
</template>

<script>
import levelDialog from './level-dialog'
export default {
  components: {
    levelDialog
  },
  methods: {
    addNewLevel() {
      this.$refs.addNew.dialogFormVisible = true
    },
    reloadFun() {
      this.$emit('reloadFun')
    }
  }
}
</script>

<style lang="sass" scoped>

</style>
